<?php
require dirname(__FILE__)."/lib/init.php";

$year = intval($_POST["year"]);
$type = intval($_POST["type"]);
$query = "SELECT * FROM kt_glory WHERE year = $year AND type = $type";
$row =  $db->get_row($query);
if($row != null){
	echo str_replace("&#34;", "\"", $row["content"]);
}

